-- GENERATED SPELL FOR [Lord Crispin Ference] --


function spell0_19873(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(8379,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19873', 10290, 1)
end

function spell1_19873(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(29567,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19873', 545, 1)
end

function spell2_19873(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19873', 8303, 1)
end

function spell3_19873(pUnit, Event) --@Shield Wall,Self--
pUnit:FullCastSpellOnTarget(29390,pUnit)
pUnit:RegisterEvent('Sorts_19873', 15333, 1)
end

function Sorts_19873(pUnit, Event)
local choix_sorts_19873 = math.random(0, 3)
if choix_sorts_19873 == 0 then
pUnit:RegisterEvent('spell0_19873', 1, 1)
end
if choix_sorts_19873 == 1 then
pUnit:RegisterEvent('spell1_19873', 1, 1)
end
if choix_sorts_19873 == 2 then
pUnit:RegisterEvent('spell2_19873', 1, 1)
end
if choix_sorts_19873 == 3 then
pUnit:RegisterEvent('spell3_19873', 1, 1)
end
end

function mob19873_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19873', math.random(1500, 3000), 1)
end

function mob19873_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19873_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19873_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19873, 1, 'mob19873_Action')
RegisterUnitEvent(19873, 2, 'mob19873_Leave')
RegisterUnitEvent(19873, 3, 'mob19873_Kill')
RegisterUnitEvent(19873, 4, 'mob19873_Die')
